package com.bwie.auth.controller;

import com.bwie.auth.service.AuthUserService;
import com.bwie.common.domain.request.UserRequest;
import com.bwie.common.result.Result;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: UserController
 * @Description: TODO
 * @version: v1.８.0
 * @author: 张雨乐
 * @date: 2025/9/18 9:26
 */
@CrossOrigin
@RestController
public class AuthUserController {
    @Autowired
    private AuthUserService authUserService;
    @PostMapping("login")
    public Result login(@RequestBody UserRequest userRequest){
        return authUserService.login(userRequest);
    }
}
